<?php
//使用场景：数据共享
namespace Swoole;
$table = new Table(1024);
$table->column('id', $table::TYPE_INT);
$table->column('name', $table::TYPE_STRING,'20');
$table->column('age', $table::TYPE_INT);
$table->create();
$table->set('hwang', ['id'=>1,'name'=>'hwang','age'=>29]);
$data = $table->get('hwang');
$table['chenyu'] = ['id'=>2,'name'=>'cy','age'=>28];
$table->decr('chenyu', 'age', 1);
$data1 = $table->get('chenyu');
var_dump($data1);